package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.PayMoneyLog;
import com.isunland.managesystem.entity.PayMoneyLogQueryParams;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/4/21 14:57
 */

public class PayMoneyLogPagerActivity extends BasePagerActivity {

  @Override protected Fragment createFragmentOne() {
    return PayMoneyLogListFragment.newInstance(
        new PayMoneyLogQueryParams().setQueryType(PayMoneyLog.TYPE_WORK),
        new PayMoneyLogListFragment());
  }

  @Override protected Fragment createFragmentTwo() {
    return PayMoneyLogListFragment.newInstance(
        new PayMoneyLogQueryParams().setQueryType(PayMoneyLog.TYPE_ORDER),
        new PayMoneyLogListFragment());
  }

  @Override public Fragment createFragmentThree() {
    return PayMoneyLogListFragment.newInstance(
        new PayMoneyLogQueryParams().setQueryType(PayMoneyLog.TYPE_LEASE),
        new PayMoneyLogListFragment());
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.taskOrder, R.string.onlineAppoint, R.string.leaseEquip };
  }

  @Override protected void setFixedTitle(boolean isFixedTitle, String fixedTitle) {
    super.setFixedTitle(true, getString(R.string.payCheck));
  }
}
